package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.domain.Car;
import cn.wolfcode.crm.mapper.CarMapper;
import cn.wolfcode.crm.service.ICarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CarServiceImpl implements ICarService{
    @Autowired
    private CarMapper carMapper;

    public int deleteByPrimaryKey(Long id) {
        return carMapper.deleteByPrimaryKey(id);
    }

    public int insert(Car record) {
        return carMapper.insert(record);
    }

    public Car selectByPrimaryKey(Long id) {
        return carMapper.selectByPrimaryKey(id);
    }

    public List<Car> selectAll() {
        return carMapper.selectAll();
    }

    public int updateByPrimaryKey(Car record) {
        return carMapper.updateByPrimaryKey(record);
    }
}
